<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{:SEO('tag-list','title')}</title>
<meta name="keywords" content="{:SEO('tag-list','keywords')}">
<meta name="description" content="{:SEO('tag-list','description')}">
<link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/tag.css" rel="stylesheet" type="text/css">
<include file="public:header" />

<div class="pagetag">

  <div class="arl">
  
  
    <div class="tit">
	
			<h1>话题&标签</h1>
		  
	</div>  
	
	<ytata:tagcat listname="cat"/>
	
	<notempty name="cat">
	
    <div class="anav">
	  	<a class="nli <if condition="$Think.get.cid eq ''">select </if>" href="{:RU('tag/lists',array('cid'=>''))}">全部</a>
		<volist name="cat" id="li">
		<a class="nli <if condition="$Think.get.cid eq $li.id ">select </if>" href="{:RU('tag/lists',array('cid'=>$li['id']))}">{$li.title}</a>
		 </volist>
		<div class="clear"></div>
	</div>
	
	</notempty>
	<!-- -->	
    <div class="cmain">
	
	<!-- -->
	<ytata:tag listname="tags"  page="1" cid="$_GET['cid']" sort="hot" num="21"/>
	<volist name="tags.list" id="tli">
	  <div class="tli">
	    <div class="imgbox"><a href="{$tli.url}" class="tag"><img src="{$tli.img}" border="0"></a></div>
	    <div class="rtxt">
			  <div class="ct"><a href="{$tli.url}" class="tag">{$tli.tag}</a></div>
		  		<div class="count">{$tli.count_question}个问答&nbsp;&nbsp;{$tli.count_article}个文章&nbsp;&nbsp;{$tli.count_bbs}个讨论</div>
			  <div class="describe">{$tli.describe|default="没有添加任何描述..."}</div>
		  </div>
		<div class="clear"></div>
	  </div>
	 </volist>
	  <div class="clear"></div>
			
	</div>
	

<empty name="tags.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>

 <div class="uupage">{$tags.page}</div>	
	
  </div>
  <div class="arr">
	
		<if condition="(C('YTATA_SMS_OPEN') eq '1') OR ($Think.session.ytata.uid NEQ '')">
			<a class="btn" href="{:RU('question/add')}">我要提问</a>
			<a class="btn share" href="{:RU('article/add')}">发表文章</a>
			<a class="btn bbs" href="{:RU('bbs/add')}">发表主题</a>
			<else />
			<a class="btn J_user_login" href="javascript:void(0);">我要提问</a>
			<a class="btn share J_user_login" href="javascript:void(0);">发表文章</a>
			<a class="btn bbs J_user_login" href="javascript:void(0);">发表主题</a>
		</if>
		
	  
		
    	<div class="tagbox">
          <div class="tit">最新话题</div>
          
                      <div class="clear"></div>
          			<ytata:tag listname="tags"  page="0" sort="new" num="40"/>
					 <volist name="tags.list" id="tli">
          			 <a class="tag" href="{$tli.url}">{$tli.tag}<span>({$tli.count_question})</span></a>
					 </volist>
                      <div class="clear"></div>
        </div>
  </div>
  <div class="clear"></div>
  
</div>

<include file="public:footer" />
</body>
</html>
